#!/usr/bin/python
# -*- coding: utf-8 -*-
import json
import requests
from my_fake_useragent import UserAgent
# https://www.itjuzi.com/api/closure?com_prov=&sort=&page=6&keyword=&cat_id=
ua = UserAgent()
if __name__ == '__main__':
    headers = {
        'User-Agent': ua.random()
    }
    urls = ['https://www.itjuzi.com/api/closure?com_prov=&sort=&page={}&keyword=&cat_id='.format(number)
            for number in range(1,30)]
    for url in urls:
        res = requests.get(url, headers = headers).json()
        # json_res = json.load(res)
        print(res)
        print("------------")